From: Rui Matos Date: Fri, 1 Feb 2013 10:36:21 +0000 (+0100) Subject: screenShield: Pop modes before starting unlock animation X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~4928 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=3652002a683d2e0a66391a60961ebc00f8abce19;p=gnome-shell.git screenShield: Pop modes before starting unlock animation This way the top panel remains visible while the shield hiding animation is ongoing instead of suddenly appearing just when it ends. https://bugzilla.gnome.org/show_bug.cgi?id=692966 --- diff --git a/js/ui/screenShield.js b/js/ui/screenShield.js index 8dac44815..3da3b0181 100644 --- a/js/ui/screenShield.js +++ b/js/ui/screenShield.js @@ -1055,6 +1055,11 @@ const ScreenShield = new Lang.Class({ deactivate: function(animate) { this._hideLockScreen(animate, 0); + if (Main.sessionMode.currentMode == 'lock-screen') + Main.sessionMode.popMode('lock-screen'); + if (Main.sessionMode.currentMode == 'unlock-dialog') + Main.sessionMode.popMode('unlock-dialog'); + Tweener.addTween(this._lockDialogGroup, { scale_x: 0, scale_y: 0, @@ -1083,11 +1088,6 @@ const ScreenShield = new Lang.Class({ this.actor.hide(); - if (Main.sessionMode.currentMode == 'lock-screen') - Main.sessionMode.popMode('lock-screen'); - if (Main.sessionMode.currentMode == 'unlock-dialog') - Main.sessionMode.popMode('unlock-dialog'); - if (this._becameActiveId != 0) { this.idleMonitor.disconnect(this._becameActiveId); this._becameActiveId = 0;